package com.whut.service;


import com.whut.model.Userinfo;
import com.whut.model.Userpermission;

import java.util.List;

public interface PersonnelService {
    public String addUser(Userinfo userinfo);
    public Userinfo getUserByUserPhone(String userPhone);
    public Object getUserByPage(int pageNum,int pageSize);
    public String deleteUserByUserId(int userid);
    public int updatePasswordByUserId(int userid,String newPassword);
    public int updateUserinfo(Userinfo user);
    public Object getUserByUserName(String userName);
    public Object getPermission();
    public Object getPersonalPermission(int userId);
    public int updatePermission(int userId,String permission);
    public int updatePermissionByPosition(String position,String permission,String newPosition);
    public int resetUserPassword(Userinfo user);

    List<Object> getAllPosition();

    List<Object> getAllModular();

    List<Object> getPermissionByModular(String modular);

    String setPermissionByPosition(Userpermission userpermission);

    Userpermission getPermissionByPermissionNum(Integer permissionNum);

    String deleteByPosition(String position);

    String deletePosition(String position);

    String addPosition(String position);

    List<Object> getPermissionByPosition(String position);

    List<Object> getAllChildSystem();

    List<Object> getModularByChildSystem(String childSystem);

    String getPermissionByUserId(String userId);
}
